//
//	RangeshopListProxy.java
//	ShopEX
//
//	Created by ShopEX on 2016-11-23.14:28:33.
//	Copyright (c) ShopEX. All rights reserved.


package httplib.RangeshopList;

import httplib.BaseProxy;
import httplib.HttpProxyListener;
import httplib.VolleyHttpHelper;

public class RangeshopListProxy extends BaseProxy {
    public void doRequest(final RangeshopListInput input, final HttpProxyListener<RangeshopListOutput> onListener) {
        new VolleyHttpHelper().PostJson(RangeshopListOutput.class, input, new HttpProxyListener() {
            @Override
            public void NetError(int code, String message) {
                onListener.NetError(code, message);
            }

            @Override
            public void ServiceError(int code, String message) {
                onListener.ServiceError(code, message);
            }

            @Override
            public void Success(Object o) {
                RangeshopListOutput body = (RangeshopListOutput) o;
                onListener.Success(body);
            }
        });
    }
}
